package cn.org.donald.framework.config;

import org.apache.dubbo.config.ConsumerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * RPC configuration
 * @author : Donald
 * @since : 2021/1/11 16:13
 */
@Configuration
public class RpcConfig {


    /**
     * Inject consumer configuration
     */
    @Bean
    public ConsumerConfig consumerConfig(){
        ConsumerConfig consumerConfig = new ConsumerConfig();
        consumerConfig.setCheck(false);
        consumerConfig.setTimeout(180000);
        return consumerConfig;
    }
}
